<?php
class DirAction extends MaterialAction
{
	/**
	 * Files that generate
	 * 
	 */
	public function mkBrandDir(){
		$brands = D('Mall')->getBrandList();
		foreach($brands as $brand){
			$dir = $this->_BASE_DIR . '/'.$brand['initials'].'-'.$brand['b_name'];
			$dir = auto_charset($dir, 'utf-8', 'gbk');
			if(is_dir($dir)){
			}else{
				mk_dir($dir);
			}
		}
	}
}
?>